package com.daka.dao;

import com.daka.entity.Organization;
import com.daka.mybatis.SQLMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "organizationDao")
@SQLMapper
public interface OrganizationDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Organization record);

    int insertSelective(Organization record);

    Organization selectByPrimaryKey(Integer id);

    List<Organization> selectByStatement(Organization record);

    int selectByStatementCount(Organization record);

    int updateByPrimaryKeySelective(Organization record);


    List<Organization> selectByCity(@Param("city")String city,@Param("limit")Integer limit,@Param("offset")Integer offset);
    int selectByCityCount(@Param("city")String city);

    Organization selectByGroupCode(String groupCode);
}